@extends('public')

@section('link')
    <link rel="stylesheet" href="/css/user_details.css">
@endsection

@section('module' , 'User')

@section('content')
    <div class="content">
        <div class="warp">
                <p>{{$data->username}}</p>
                <p>Created in {{$data->created_at}}</p>
                <p>Last login {{date('Y-m-d' , $data->last_login_timestamp)}}</p>
                <div class="both"></div>
            <div class="score">
                <p>Game Score</p>
                <div class="both"></div>
                <ul>
                    @foreach($data->scores as $value)
                        @if($value->game != null && $value->game->is_ban == null)
                            <li>
                                <p>{{$value->game->title}}</p>
                                <p>Score : {{$value->score}}</p>
                                <p>Created : {{$value->created_at}}</p>
                            </li>
                        @endif
                    @endforeach
                </ul>
            </div>
        </div>
    </div>
    @php
    @endphp
@endsection
